package com.itheima.reggie.service;

import com.itheima.reggie.entity.AddressBook;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface AddressBookService {
    void save(AddressBook addressBook);

    List<AddressBook> list(Long userId);

    AddressBook findById(Long id);

    void update(AddressBook addressBook);

    void updateDefault(AddressBook addressBook);

    AddressBook getDefaultAddress(Long userId);

    void deleteById(Long ids);

}
